projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c49b29f
)
modules: Check current context before retrieving surrounding
author
Carlos Garnacho
<carlosg@gnome.org>
Fri, 7 Sep 2018 14:54:13 +0000
(16:54 +0200)
committer
Carlos Garnacho
<carlosg@gnome.org>
Tue, 18 Dec 2018 19:27:12 +0000
(20:27 +0100)
There may be situations where this might get called while the
currently focused context just went away (eg. after setting the
text widget unsensitive).
Closes: #1317
gtk/gtkimcontextwayland.c
patch
|
blob
|
history
diff --git
a/gtk/gtkimcontextwayland.c
b/gtk/gtkimcontextwayland.c
index d3286bf7a5c0568033b39038df7022661bcf8dba..2e5e81f2f39521ee238687d96fb3f567e856f2f3 100644
(file)
--- a/
gtk/gtkimcontextwayland.c
+++ b/
gtk/gtkimcontextwayland.c
@@
-105,6
+105,9
@@
notify_external_change (GtkIMContextWayland *context)
{
gboolean result;
+ if (!global->current)
+ return;
+
context->surrounding_change = ZWP_TEXT_INPUT_V3_CHANGE_CAUSE_OTHER;
g_signal_emit_by_name (global->current, "retrieve-surrounding", &result);
}